ScxV6Aggregate.Enable Method
Controls whether an optional aggregate is enabled.
Remarks
This property is used view and control whether an optional single-choice aggregate is enabled. True if aggregate is enabled, False if aggregate is not enabled.
The following example written in VB.NET shows the Enable property being used to test whether the historic aggregate of an analogue point is enabled, and to enable/disable it
Dim Svr As ScxV6DbClient.ScxV6Server
Dim Obj As ScxV6DbClient.ScxV6Object
Dim Aggr As ScxV6DbClient.ScxV6Aggregate
' Connect to the server
Svr = New ScxV6DbClient.ScxV6Server()
Svr.Connect("MAIN", "", "")
' Find a folder on the system
Obj = Svr.FindObject("Analogue Point 1")
' Get the historic aggregate from the object
Aggr = Obj.Aggregate("Historic")
' Enable or disable the historic aggregate, depending on whether
' it is currently enabled
If Aggr.Enable Then
Aggr.Enable = False
Else
Aggr.Enable = True
End If
' Disconnect
Svr.Disconnect()